#pragma once

// All of CMDs always ends with "\r\n" (which is appended by pipe client automatically).
#define CMD_LAUNCH_V2_AND_FAILED_IF_EXIST	"cmd_start_v2_failed_if_exist\r\n"
#define CMD_KILL_V2_AND_FAILED_IF_NOT_EXIST "cmd_kill_v2_failed_if_not_exist\r\n"
#define CMD_GET_V2_CONFIG					"cmd_get_v2_config\r\n"
// Modify the [domain - vps] mapping base on current server list;
#define CMD_MODIFY_V2_DOMAIN_VPS_MAPPING	"cmd_modify_vps_map\r\n"

// Respond to pipe cmd.
#define EMSG_SUCCESS					"OK"
#define EMSG_UNKNOWN					"UnknownError"
//CMD_LAUNCH_V2_AND_FAILED_IF_EXIST, CMD_KILL_V2_AND_FAILED_IF_NOT_EXIST
#define EMSG_V2_NOT_EXIST				"V2NotExist"
#define EMSG_V2_PROCESS_ALREADY_EXIST	"V2ProcessHasAlreadyExist"		//CMD_LAUNCH_V2_AND_FAILED_IF_EXIST
#define EMSG_V2_CREATE_PROCESS_FAILED	"V2ProcessCreateFailed"			//CMD_LAUNCH_V2_AND_FAILED_IF_EXIST
#define EMSG_V2_PROCESS_NOT_EXIST		"V2ProcessNotExist"		//CMD_LAUNCH_V2_AND_FAILED_IF_EXIST
#define EMSG_KILL_V2_FAILED				"KillV2ProcssFailed"	//CMD_KILL_V2_AND_FAILED_IF_NOT_EXIST
#define EMSG_V2_CONFIG_NOT_EXIST		"V2ConfigNotExist"
#define EMSG_V2_CONFIG_OPEN_FAILED		"V2ConfigOpenFailed"
#define EMSG_V2_CONFIG_PARSE_ERROR		"V2ConfigParseError"
#define EMSG_V2_CONFIG_BAD_FORMAT		"V2ConfigBadFormat"
#define EMSG_V2_CONFIG_OPEN_WRITE_FAILED	"V2ConfigOpenForWriteFailed"

